home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_dev.lha / GMSDev / Includes / system / tasks.i < prev    next >
Encoding:
Text File  |  1998-08-02  |  2.7 KB  |  75 lines

  1.     IFND SYSTEM_TASKS_I
  2. SYSTEM_TASKS_I  SET  1
  3.  
  4. **
  5. **  $VER: tasks.i
  6. **
  7. **  (C) Copyright 1996-1998 DreamWorld Productions.
  8. **      All Rights Reserved.
  9. **
  10.  
  11.     IFND    DPKERNEL_I
  12.     include    'dpkernel/dpkernel.i'
  13.     ENDC
  14.  
  15. *****************************************************************************
  16. * Task object.
  17.  
  18. VER_TASK  = 2
  19. TAGS_TASK = ((ID_SPCTAGS<<16)|ID_TASK)
  20.  
  21.     STRUCTURE    DPKTask,HEAD_SIZEOF
  22.     APTR    GT_UserData        ;[RW] Pointer to user data, no restrictions.
  23.     APTR    GT_Name            ;[RI] Name of the task if specified. (READ ONLY)
  24.     APTR    GT_MasterPrefs     ;[--] Master preferences.
  25.     APTR    GT_ScreenPrefs     ;[--] Screen preferences.
  26.     APTR    GT_SoundPrefs      ;[--] Sound preferences.
  27.     APTR    GT_BlitterPrefs    ;[--] Blitter preferences.
  28.     APTR    GT_ResourceChain   ;[--] The resource chain, private.
  29.     LONG    GT_ReqStatus       ;[--] Used internally.
  30.     LONG    GT_BlitKey         ;[--] Used to store resource key.
  31.     LONG    GT_AudioKey        ;[--] Used to store resource key.
  32.     LONG    GT_ExecNode        ;[--] Task's exec node.
  33.     APTR    GT_DestructStack   ;[--] Pointer to self destruct exit stack.
  34.     APTR    GT_DestructCode    ;[--] Pointer to self destruct exit code.
  35.     BYTE    GT_AlertState      ;[--] On/Off.
  36.     BYTE    GT_Switched        ;[--] Set if task is in Switch().
  37.     WORD    GT_DebugStep       ;[--] Debug tree stepping position.
  38.     BYTE    GT_AwakeSig        ;[--] Signal for waking this task.
  39.     BYTE    GT_Pad             ;[--] Reserved.
  40.     WORD    GT_DPKTable        ;[-I] Type of jump table for dpkernel.
  41.     LONG    GT_TotalData       ;[R-] Total data memory in use.
  42.     LONG    GT_TotalVideo      ;[R-] Total video memory in use.
  43.     LONG    GT_TotalSound      ;[R-] Total sound memory in use.
  44.     LONG    GT_TotalBlit       ;[R-] Total blitter memory in use.
  45.     APTR    GT_Code            ;[-I] Start of program.
  46.     APTR    GT_Preferences     ;[--] Preferences directory.
  47.     APTR    GT_DPKBase         ;[R-] DPKBase.
  48.     APTR    GT_Author          ;[RI] Who wrote the program.
  49.     APTR    GT_Date            ;[RI] Date of compilation.
  50.     APTR    GT_Copyright       ;[RI] Copyright details.
  51.     APTR    GT_Short           ;[RI] Short description of program.
  52.     WORD    GT_MinDPKVersion   ;[R-] Minimum required DPKernel version.
  53.     WORD    GT_MinDPKRevision  ;[R-] Minimum required DPKernel revision.
  54.     APTR    GT_GVBase          ;[R-] GVBase.
  55.     APTR    GT_Args            ;[RI] Pointer to argument string.
  56.     APTR    GT_Source          ;[RI] Where to load the task details from.
  57.     APTR    GT_prvName         ;[--]
  58.     WORD    GT_DebugState      ;[RW] Debug On/Off
  59.  
  60. TSK_Name      = (TAPTR|GT_Name)
  61. TSK_DPKTable  = (TWORD|GT_DPKTable)
  62. TSK_Code      = (TAPTR|GT_Code)
  63. TSK_Author    = (TAPTR|GT_Author)
  64. TSK_Date      = (TAPTR|GT_Date)
  65. TSK_Copyright = (TAPTR|GT_Copyright)
  66. TSK_Short     = (TAPTR|GT_Short)
  67. TSK_Args      = (TAPTR|GT_Args)
  68. TSK_Source    = (TAPTR|GT_Source)
  69.  
  70. CS_OCS =  0
  71. CS_ECS =  1
  72. CS_AGA =  2
  73.  
  74.   ENDC    ;SYSTEM_TASKS_I
  75.